#ifndef LOGIN_H
#define LOGIN_H

#include "enroll.h"
#include "connection.h"
#include <QWidget>

namespace Ui {
class Login;
}

class Login : public QWidget
{
    Q_OBJECT

public:
    explicit Login(QWidget *parent = nullptr);

    int get_user_id();

    QString get_listName();

    ~Login();

private slots:

    void on_But_Login_clicked();    //点击登录键

    void on_But_Register_clicked();



signals:
    void LoginSuccess();

private:
    Ui::Login *ui;
    Enroll *winRron;
    int user_id;
    QString listName;
};

#endif // LOGIN_H
